package descentFly.away3D4.exits
{
	import descentFly.away3D4.chips.df_chipAway;
	import descentFly.away3D4.df_awaySpace;
	import descentFly.away3D4.doors.df_door;
	import descentFly.df_optionsObject;
	
	import jiglib.events.JCollisionEvent;
	import jiglib.geometry.JBox;
	import jiglib.physics.RigidBody;
	
	public class df_baseExit extends df_door {
		public function df_baseExit(a_space: df_awaySpace, a_options:Object) {
			super(a_space, a_options);
		}
		
		override protected function initBody():void {
			var a_body: JBox = new JBox(null, options.box.x, options.box.y, options.box.z);
			a_body.movable = false;
			a_body.addEventListener(JCollisionEvent.COLLISION_START, doCollision);
			spaceAway.physic.addBody(a_body);
			setBody(a_body);
		}
		
		protected function doCollision(e: JCollisionEvent):void {
			trace('EXIT');
		}
	}
	
}